package ywpt.web.action.query;

import ywpt.core.util.StringTools;
import ywpt.core.web.BaseAction;

public class ReportRedirectAction extends BaseAction{

	/**
	 * 
	 */
	private static final long	serialVersionUID	=8684386261217641877L;
	public String reportName;
	
	public String getReportName()
	{
		return reportName;
	}
	public void setReportName(String reportName)
	{
		this.reportName=reportName;
	}
	@Override
	public String execute() throws Exception
	{
		if(!StringTools.isNullOrSpace(this.getReportName()))
		{
			this.setReportName("/ywptbirt/frameset?__report=ysbz/"+this.getReportName()+".rptdesign");
		}
		this.getResponse().sendRedirect(this.getReportName());
		
		return SUCCESS;
	}

	
}
